package com.xique.park.bean.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xique.common.core.annotation.Excel;
import com.xique.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * 当前在场车辆的停车流水订单对象 t_parking_order_on
 *
 * @author xique
 * @date 2021-12-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ParkingOrderOn extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 车场id
     */
    @Excel(name = "车场id")
    private Long parkId;

    /**
     * 停车流水号，唯一标识某一次停车
     */
    @Excel(name = "停车流水号，唯一标识某一次停车")
    private String parkingSerial;

    /**
     * 车牌号
     */
    @Excel(name = "车牌号")
    private String plate;

    /**
     * 进场时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "进场时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inTime;

    /**
     * 停车时长（秒）
     */
    @Excel(name = "停车时长", readConverterExp = "秒=")
    private Long parkingTime;

    /**
     * 总金额
     */
    @Excel(name = "总金额")
    private Long totalFee;

    /**
     * 提前支付金额
     */
    @Excel(name = "提前支付金额")
    private Long paidFee;

    /**
     * 优惠券抵扣金额
     */
    @Excel(name = "优惠券抵扣金额")
    private Long couponFee;

    /**
     * 本次出场需支付金额
     */
    @Excel(name = "本次出场需支付金额")
    private Long payFee;

    /**
     * 大小车型
     */
    @Excel(name = "大小车型")
    private String carSize;

    /**
     * 车辆管理类型id
     */
    @Excel(name = "车辆管理类型id")
    private Long mngtypeId;

    /**
     * 车辆在场、出场状态
     */
    @Excel(name = "车辆在场、出场状态")
    private String parkStatus;

    /**
     * 车辆支付状态
     */
    @Excel(name = "车辆支付状态")
    private String payStatus;

    /**
     * 车辆状态，预留
     */
    @Excel(name = "车辆状态，预留")
    private String status;

    /**
     * 车库id
     */
    @Excel(name = "车库id")
    private Long garageId;

    /**
     * 父订单id
     */
    @Excel(name = "父订单id")
    private Long pid;

}
